package com.jemaa.news.app;

import java.util.Date;
import java.util.List;

/**
 * News lisible par les lecteurs
 * 
 * @author Beyrouk
 *
 */
public class News {
	
//	TODO changer categ et source et image pour mettre les ids.
	
	private Long idNews;
	private Long idImg;
	private Long idSrc;
	private String imgUri;
	private String titre;
	private String accroche;
	private String article;
	private Date dateArt;
	private String imgMaxUri;
	private int idCateg;
	private String categ;
	private String source;
	private String sourceUrl;
	private List<Comment> commentList;
	private int nbrComment;
	private int nbrVisit;
	
	
	public News() {
		super();
	}
	
	public Long getIdNews() {
		return idNews;
	}
	
	public void setIdNews(Long idNews) {
		this.idNews = idNews;
	}
	
	public Long getIdImg() {
		return idImg;
	}

	public void setIdImg(Long idImg) {
		this.idImg = idImg;
	}

	public Long getIdSrc() {
		return idSrc;
	}

	public void setIdSrc(Long idSrc) {
		this.idSrc = idSrc;
	}

	public String getImgUri() {
		return imgUri;
	}
	
	public void setImgUri(String imgUri) {
		this.imgUri = imgUri;
	}
	
	public String getTitre() {
		return titre;
	}
	
	public void setTitre(String titre) {
		this.titre = titre;
	}
	
	public String getAccroche() {
		return accroche;
	}

	public void setAccroche(String accroche) {
		this.accroche = accroche;
	}

	public void setArticle(String article) {
		this.article = article;
	}

	public String getArticle() {
		return article;
	}
	
	public Date getDateArt() {
		return dateArt;
	}
	
	public void setDateArt(Date dateArt) {
		this.dateArt = dateArt;
	}
	
	public String getImgMaxUri() {
		return imgMaxUri;
	}

	public void setImgMaxUri(String imgMaxUri) {
		this.imgMaxUri = imgMaxUri;
	}

	public int getIdCateg() {
		return idCateg;
	}

	public void setIdCateg(int idCateg) {
		this.idCateg = idCateg;
	}
	
	public String getCateg() {
		return categ;
	}

	public void setCateg(String categ) {
		this.categ = categ;
	}
		
	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}
		
	public String getSourceUrl() {
		return sourceUrl;
	}

	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}

	public List<Comment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<Comment> commentList) {
		this.commentList = commentList;
	}

	public int getNbrComment() {
		return nbrComment;
	}

	public void setNbrComment(int nbrComment) {
		this.nbrComment = nbrComment;
	}

	public int getNbrVisit() {
		return nbrVisit;
	}

	public void setNbrVisit(int nbrVisit) {
		this.nbrVisit = nbrVisit;
	}
	
	
	
	
	
}
